//
//  defineHead.h
//  workTemp1
//
//  Created by 赵嘉诚 on 14/11/13.
//  Copyright (c) 2014年 赵嘉诚. All rights reserved.
//

#ifndef workTemp1_defineHead_h
#define workTemp1_defineHead_h

#define BACKGROUND_COLOR [UIColor colorWithRed:245.0/255.0 green:245.0/255.0 blue:245.0/255.0 alpha:1.0]
#define TEXT_GRAY_COLOR [UIColor colorWithRed:135.0/255.0 green:135.0/255.0 blue:135.0/255.0 alpha:1.0]
#define TEXT_GREEN_COLOR [UIColor colorWithRed:50.0/255.0 green:205.0/255.9 blue:50.0/170.0 alpha:1.0]

#define GET_IMAGE_PATH_WITH_NAME(name) [[NSBundle mainBundle] pathForResource:name ofType:@"png"]
#define GET_IAMGE_WITH_NAME(name) [UIImage imageWithContentsOfFile:GET_IMAGE_PATH_WITH_NAME(name)]

/**************************************网络*************************************************/
#define NET_PORT 4196      //端口号

//#define hostID  @"d0cd756f481df55fa8419fed"    //主机ID
#define CMD_HOST_ID  @"HOST-CHKLIC-"
#define CMD_HOST_ID_OK  @"HOST-CHKLIC-OK\0"
#define CMD_HOST_ID_ERR  @"HOST-CHKLIC-ERROR\0"
#define CMD_FILE_READ_START  @"FILE-READ-START\0"
#define CMD_FILE_READ_END  @"FILE-READ-END\0"
#define CMD_FILE_READ_ERROR @"FILE-READ-ERROR\0"
#define CMD_FILE_READ_NAME  @"FILE-READ-/"
#define CMD_FILE_READ  @"FILE-READ-"
/******************************************************************************************/

/**************************************文件*************************************************/
#define DOCUMENTS  @"Documents/"
#define CMD_FILE_NAME  @"Documents/mobile2.zip"
#define FILE_NAME  @"mobile2.zip"
#define TXT_FILE_NAME  @"Documents/mobile2.txt"
#define LIST_NAME  @"Documents/UserList.plist"
#define DB_NAME  @"mySmartHome.db"
#define SCENE_LIST_PATH @"Documents/sceneList.plist"
/******************************************************************************************/

/************************************楼层和房间**********************************************/
#define FLOOR  @"FLOOR"
#define FLOOR_NAME  @"floorName"
#define FLOOR_ID  @"floor"
#define ROOM  @"ROOM"
#define ROOM_NAME  @"roomName"
#define ROOM_ID  @"roomId"
/******************************************************************************************/

/**************************************设备*************************************************/
#define DEVICE_NAME  @"deviceName"
#define DEVICE_ID  @"deviceId"
#define DEVICE_TYPE  @"deviceType"
#define KEY_Name  @"devicekeyName"
#define KEY_Type  @"keyType"
#define SENSOR_ID  @"sensorId"

#define CURTAIN_TYPE  @"CL"
#define LIGHT_TYPE1  @"SD"
#define LIGHT_TYPE2 @"PD"
#define LIGHT_TYPE3  @"TD"
#define AIR_TYPE  @"KT"
#define TV_TYPE  @"TV"
#define CAMERA_TYPE  @"SX"
#define MB_TYPE  @"MB"
#define STB_TYPE  @"STB"
#define DVD_TYPE  @"DVD"
#define AMP_TYPE  @"AMP"
/******************************************************************************************/

/**************************************功能*************************************************/
//空调
#define AIR_NAME  @"AIRCONDITION"
#define AIR_ON  @"AIR_ON"
#define AIR_OFF  @"AIR_OFF"
#define AIR_MAKECOLD  @"AIR_MAKECOLD"
#define AIR_MAKEHOT  @"AIR_MAKEHOT"
#define AIR_DEHUM  @"AIR_DEHUM"      //除湿
#define AIR_TIMING  @"AIR_TIMING"
#define AIR_ARID  @"AIR_ARID"        //干燥
#define AIR_WIPE  @"AIR_WIPE"       //扫风
#define AIR_AUTO  @"AIR_AUTO"

//电视
#define TV_NAME  @"TV"
#define TV_ON  @"TV_ON"
#define TV_OFF  @"TV_OFF"
#define TV_QUIET  @"TV_QUIET"
#define TV_VOICE_UP  @"TV_VOL_UP"
#define TV_VOICE_DOWN  @"TV_VOL_DOWN"
#define TV_MENU  @"TV_MENU"
#define TV_AV  @"TV_AV"
#define TV_CH_UP  @"TV_CH_UP"
#define TV_CH_DOWN  @"TV_CH_DOWN"
#define TV_OK  @"TV_OK"
#define TV_BACK  @"TV_BACK"
#define TV_SP  @"TV_SP"
#define TV_LEFT  @"TV_LEFT"
#define TV_RIGHT  @"TV_RIGHT"
#define TV_UP  @"TV_UP"
#define TV_DOWN  @"TV_DOWN"
#define TV_SHOW @"TV_SHOW"
#define TV_DEL @"TV_DEL"

//窗帘
#define CL_ON  @"CL_ON"
#define CL_STOP  @"CL_STOP"
#define CL_OFF  @"CL_OFF"

//幕布
#define MB_ON  @"MB_ON"
#define MB_OFF  @"MB_OFF"

//灯
#define PD_ON  @"PD_ON"
#define PD_OFF  @"PD_OFF"
#define TD_VALUE0  @"TD_VALUE0"
#define TD_VALUE1  @"TD_VALUE1"
#define TD_VALUE2  @"TD_VALUE2"
#define TD_VALUE3  @"TD_VALUE3"
#define TD_VALUE4  @"TD_VALUE4"

//机顶盒
#define STB_ON  @"STB_ON"
#define STB_OFF  @"STB_OFF"
#define STB_VOL_UP  @"STB_VOL_UP"
#define STB_VOL_DOWN  @"STB_VOL_DOWN"
#define STB_QUITE  @"STB_QUITE"
#define STB_UP  @"STB_UP"
#define STB_DOWN  @"STB_DOWN"
#define STB_LEFT  @"STB_LEFT"
#define STB_RIGHT  @"STB_DOWN"
#define STB_MENU  @"STB_MENU"
#define STB_OK  @"STB_OK"
#define STB_BACK  @"STB_BACK"
#define STB_BACKOFF  @"STB_BACKOFF"
#define STB_EXIT  @"STB_EXIT"
#define STB_CH_UP  @"STB_CH_UP"
#define STB_CH_DOWN  @"STB_CH_DOWN"

//影碟机
#define DVD_ON @"DVD_ON"
#define DVD_OFF  @"DVD_OFF"
#define DVD_OPEN  @"DVD_OPEN"
#define DVD_MENU  @"DVD_MENU"
#define DVD_BACK  @"DVD_BACK"
#define DVD_TRACK  @"DVD_TRACK"  //声道
#define DVD_CAPTION  @"DVD_CAPTION"  //字幕
#define DVD_EXIT  @"DVD_EXIT"
#define DVD_UP  @"DVD_UP"
#define DVD_DOWN  @"DVD_DOWN"
#define DVD_LEFT @"DVD_LEFT"
#define DVD_RIGHT  @"DVD_RIGHT"
#define DVD_OK  @"DVD_OK"
#define DVD_PLAY  @"DVD_PLAY"
#define DVD_STOP  @"DVD_STOP"
#define DVD_PAUSE  @"DVD_PAUSE"
#define DVD_PREVIOUS  @"DVD_PREVIOUS"
#define DVD_BACKUP  @"DVD_BACKUP"
#define DVD_FORWARD  @"DVD_FORWARD"
#define DVD_NEXT  @"DVD_NEXT"

//功放
#define AMP_ON  @"AMP_ON"
#define AMP_OFF  @"AMP_OFF"
#define AMP_HDMI1  @"AMP_HDMI1"
#define AMP_HDMI2  @"AMP_HDMI2"
#define AMP_HDMI3  @"AMP_HDMI3"
#define AMP_HDMI4 @"AMP_HDMI4"
#define AMP_AV1  @"AMP_AV1"
#define AMP_AV2  @"AMP_AV2"
#define AMP_AV3  @"AMP_AV3"
#define AMP_AV4  @"AMP_AV4"
#define AMP_VOL_UP  @"AMP_VOL_UP"
#define AMP_VOL_DOWM  @"AMP_VOL_DOWN"

/******************************************************************************************/



#endif
